package com.jason.serivce.impl;

import java.util.List;
import java.util.Optional;
import java.util.Set;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.jason.bean.Role;
import com.jason.bean.UserInfo;
import com.jason.dao.RoleDao;
import com.jason.dao.UserInfoDao;
import com.jason.service.RoleService;

@Service("roleService")
public class RoleServiceImpl implements RoleService {
	@Resource
	private RoleDao roleDao;

	@Override
	public List<Role> findByUser(Integer userId) {
		return roleDao.findByUserId(userId);
	}

}
